<template>
  <div
    v-if="value"
    class="erp-view-tinymce"
  >
    <div v-html="value" />
  </div>
</template>

<script>
/**
   * 富文本预览
   * @author maolin
   */
export default {
  name: "ErpViewTinymce",
  props: {
    /**
     * 默认值
     * @public
     */
    value: {
      type: [String],
      default: ''
    }
  }
};
</script>

<style lang="scss" scoped>
    .erp-view-tinymce{
        padding: 10px;
        border: 1px solid rgba(0,0,0,0.125);
        border-radius: .25rem;
        background-color: #fff;
        margin-bottom: 1rem;
    }
</style>
